package com.uenpay.im.ui.old.activity.company;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.TextView;

import com.uenpay.im.IMApplication;
import com.uenpay.im.R;

/**
 * @author SL
 * @created 2016-2-22 14:59:08
 * @copyRight http://www.qiyunxin.com
 * @function TODO
 */
public class ChooseAddDepartmentMeneberModeActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		IMApplication.getInstance().addActivity(this);
		setContentView(R.layout.activity_choose_depar_menber_layout);
		initView();
		initListener();
	}

	private void initView() {
		((TextView) findViewById(R.id.title_textview))
				.setText(R.string.main_contacts);
	}

	private void initListener() {
		findViewById(R.id.back_layout).setOnClickListener(
				new OnClickListener() {

					@Override
					public void onClick(View arg0) {
						finish();
					}
				});
	}

	@Override
	public void onBackPressed() {
		finish();
		super.onBackPressed();
	}

	@Override
	protected void onDestroy() {
		IMApplication.getInstance().removeActivity(this);
		super.onDestroy();
	}
}
